package com.open.capacity.talented.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Industry implements Menu{
    private Long id;
    private Long pid;
    private String industryName;
    private List<? extends Menu> child = new ArrayList<>();

    private Integer status;

    @Override
    public Long getParentId() {
        return pid;
    }

    @Override
    public void setChildMenus(List<Menu> list) {
        this.child = list;
    }

}
